Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt col name bug fix for option to handle larger dataset for location models #798

Merged

Conversation

bwentl
Copy link
Contributor

@bwentl bwentl commented Feb 13, 2024

This is to fix bug related to a hard-coded variable name in #687 when building the estimation data in chunks.

The previous pull request uses exclusively person_id, which means it will only work for mandatory destination EDBs. This change will mean that tour and trip destination EDBs will also work. This fix relies on the ID column inside the alternative data for EDB being the first column, which currently is the case.

- person_id is not compatible for tour and trip destination models, should use tour_id or trip_id instead
- to make this variable for generic, the code will now use the first column in the alternative data file
@jpn--
Copy link
Member

jpn-- commented Feb 13, 2024

This looks fine. We need a more robust estimation mode system with rigorous testing to catch these problems, but this is a reasonable patch for now. Will merge once we confirm none of the existing tests are broken (which seems quite unlikely but just in case...) Thanks!

@jpn-- jpn-- merged commit e2ed3a0 into ActivitySim:develop Feb 13, 2024
18 checks passed
@jpn-- jpn-- mentioned this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants